package com.briup.pts.config.property;

import lombok.Data;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
// 在SpringBoot框架中提供了 @ConditionalOnXXX系列的注解用于限制在创建bean时的前置条件，
// 如 @ConditionalOnMissingBean注解，就可以指定当缺失某一个bean对象时，才创建本类的bean对象
@ConditionalOnProperty(prefix = "upload.qiniu",name = "enable",havingValue = "false")
@Component
@ConfigurationProperties(prefix = "upload.nginx")
public class NginxProperty {
    private String basePath;
    private String baseUrl;
}
